package com.yfp.common.core.domain;

public enum ResponseEnum {
    OPERATOR_SUCCESS(200, "操作成功"),
    OPERATOR_FAILUER(201, "操作失败"),
    OPERATOR_NOT_AUTH(202, "无权操作"),
    NOT_USER(203, "无该用户"),
    INVALID_TOKEN(204, "token无效"),
    NOT_BIND(205, "未绑定"),
    ANEW_CODE(206, "从新获取验证码"),
    CODE_ERROR(207, "验证码错误"),
    SMS_OFTEN(208, "获取验证码过于频繁"),
    CLOCK_USER(209, "该用户已被锁定"),
    PARAM_NULL(210, "必要参数为空"),
    DISABLED(211, "账号已被禁用，请联系客服"),
    HAS_GROUP_ORDER(212, "您存在待支付订单，请取消订单或去支付"),
    INVALID_PACKAGE(213, "礼包内容存在异常券，请检查"),
    COUPON_NOT_EXIST(214, "优惠券不存在"),
    COUPON_OVERDUE(215, "优惠券已过期"),
    COUPON_NOT_COUNT(216, "该优惠券码已被核销"),
    ;

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
